package com.hao.Collection;

import com.hao.feign.Remote;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FeignController {
    //声明远程Service,然后自动会注入进来

        //声明远程Service,然后自动会注入进来
        @Autowired
        private Remote Interface;

        @GetMapping("/get")
        public String get() {
            return "this is feign callback="+Interface.cs();
        }




}
